package uml.structural.adapter.ext.defaultt;

/**
 * 缺省适配器[但接口适配器]--单接口适配器类<br>
 * 根据需要有选择地重写一个或者几个方法<br>
 * on 2022/12/23 1:32
 */
public class SingleMethodAdapter extends AbstractInterface{
    private ExistedInterface existedInterface;
    public SingleMethodAdapter(){
        existedInterface=new ExistedInterface();
    }
    @Override
    public void m() {
        existedInterface.service();
    }
}
